package com.power.sifa.util.executor;

import com.power.sifa.approve.executor.AdmreExecutor;

import java.util.Map;

/**
 * 任务后自动调用服务抽象类
 *
 * @author 81814
 */
public abstract class AbstractPostExecutor extends AdmreExecutor implements IPostExecutor {
    /**
     * 流程实例id
     */
    protected String processinstanceid;

    /**
     * applyid
     */
    protected String applyid;


    /**
     * 任务id
     */
    protected String taskid;

    /**
     * 环节id
     */
    protected String stepid;


    public void setProcessinstanceid(String processinstanceid) {
        this.processinstanceid = processinstanceid;
    }

    public void setapplyid(String applyid) {
        this.applyid = applyid;
    }

    public void setTaskid(String taskid) {
        this.taskid = taskid;
    }

    public void setStepid(String stepid) {
        this.stepid = stepid;
    }

    public abstract void init(Map<String, Object> initdata);

    public abstract Map<String, Object>  execute() throws Exception;


}
